<%@page pageEncoding="Cp1252" contentType="text/html; charset=Cp1252"
	language="java"%>
<%@ page import="negocio.*"%>
<%@ page import="controle.Fachada"%>
<%
	Aluno aluno = null;

	int matricula = Integer.valueOf(request.getParameter("matricula"));
	Pessoa pessoa = null;
	if (!(matricula == 0)) {
		pessoa = Fachada.obterInstancia().consultarPessoaPorMatricula(
				matricula);
	}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
<title>Alterar Aluno/Professor</title>


<style type="text/css">
<!--
.btCancelar {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #990000;
	background-color: #CCCCFF;
	font-style: italic;
}

.btSalvar {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #000033;
	background-color: #CCCCFF;
	font-weight: bold;
	text-transform: capitalize;
}

.textoTabela {
	font-family: Courier, monospace;
	font-size: 12px;
	color: #000066;
	font-weight: bold;
	text-transform: capitalize;
}
-->
</style>
</head>
<body>
<form action="../proc/proc_alterarPessoa.jsp" method="post">
<table style="text-align: left; height: 196px; width: 467px;"
	bgcolor="#440000" cellpadding="1" cellspacing="1">
	<tbody bgcolor="#aaaaaa">

		<tr>

			<td bgcolor=#333333 colspan="2"><b><font color=white>Alterar
			Pessoa</font></b></td>

		</tr>

		<tr>

			<td>Matr&iacute;cula:</td>

			<td><input size="10" name="matricula" type="text"
				value="<%=String.valueOf(pessoa.getMatricula())%>"></td>

		</tr>

		<tr>

			<td>Nome:</td>

			<td><input size="20" name="nome" type="text"
				value="<%=pessoa.getNome()%>"></td>

		</tr>

		<tr>

			<td>Idade:</td>

			<td><input size="10" name="idade" type="text"
				value="<%=String.valueOf(pessoa.getIdade())%>"></td>

		</tr>

		<tr>

			<td>Coef. Rend.:</td>

			<td><input size="10" name="Rendimento" type="text"
				value="<%=String.valueOf(aluno.getCoeficienteRendimento())%>"></td>

		</tr>

		<tr>

			<td>Tipo:</td>

			<td>Aluno <input name="tipo" type="radio">&nbsp;&nbsp;
			Professor <input name="tipo" type="radio"></td>

		</tr>

		<tr>

			<td>Curso:</td>

			<td><input size="20" name="nome" type="text"
				value="<%=aluno.getCurso()%>"></td>

		</tr>

		<tr>
			<td>Matr&iacute;cula Trancada:</td>
			<td>Sim <input name="rdTrancada" type="radio">&nbsp;&nbsp;
			N&atilde;o <input name="rdTrancada" type="radio"></td>
		</tr>
		<tr>
			<td>Possui projeto de pesquisa:</td>
			<td>Sim <input name="rdProjeto" type="radio">&nbsp;&nbsp;
			N&atilde;o <input name="rdProjeto" type="radio"></td>
		</tr>
		<tr>
			<td colspan=2 align=right><input name=btCancelar type=button
				class="btCancelar" value='Cancelar'> &nbsp;&nbsp;&nbsp;<input
				name=btFiltrar type="submit" class="btSalvar" value='Salvar'></td>
		</tr>

	</tbody>
</table>

<br>
</form>
</body>
</html>
